import { Button, Popconfirm } from 'antd'

const DeleteButton = (props) => {
  const { action } = props
  return (
    <Popconfirm
      title="你确定删除?"
      onConfirm={action}
      okText="是"
      cancelText="不"
    >
      <Button type="link" danger>删除</Button>
    </Popconfirm>
  )
}
export default DeleteButton
